unit CadastrarLimite;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, XPMan, Menus, DB, ADODB, Mask, DBCtrls, ExtCtrls;

type
  TfLimite = class(TForm)
    MainMenu1: TMainMenu;
    File1: TMenuItem;
    Fechar1: TMenuItem;
    Cadastro1: TMenuItem;
    Usurio1: TMenuItem;
    Jogador1: TMenuItem;
    LimiteDbito1: TMenuItem;
    Ficha1: TMenuItem;
    Capil1: TMenuItem;
    Fechamento1: TMenuItem;
    DevoluodeFicha1: TMenuItem;
    orneio1: TMenuItem;
    RingGame1: TMenuItem;
    Sair1: TMenuItem;
    XPManifest1: TXPManifest;
    DBNavigator1: TDBNavigator;
    TableLimite: TADOTable;
    TableLimiteCdigo: TAutoIncField;
    TableLimiteNome: TWideStringField;
    TableLimiteCPF: TWideStringField;
    TableLimiteRG: TWideStringField;
    TableLimiteEndereco: TWideStringField;
    TableLimiteFixo: TWideStringField;
    TableLimiteCel: TWideStringField;
    TableLimiteNascimento: TDateTimeField;
    TableLimiteLimite: TBCDField;
    Label1: TLabel;
    DBEdit1: TDBEdit;
    DataLimite: TDataSource;
    Label2: TLabel;
    DBEdit2: TDBEdit;
    Label3: TLabel;
    DBEdit3: TDBEdit;
    ADOLimite: TADOConnection;
    procedure Usurio1Click(Sender: TObject);
    procedure Jogador1Click(Sender: TObject);
    procedure Ficha1Click(Sender: TObject);
    procedure Capil1Click(Sender: TObject);
    procedure Fechamento1Click(Sender: TObject);
    procedure DevoluodeFicha1Click(Sender: TObject);
    procedure RingGame1Click(Sender: TObject);
    procedure Sair1Click(Sender: TObject);
    procedure Fechar1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fLimite: TfLimite;

implementation

uses CadastrarUsuario, CadastrarJogador, CadastrarCapile, Fechamento,
  Devolucao, RingGame, EntradaFichas;

{$R *.dfm}

procedure TfLimite.Usurio1Click(Sender: TObject);
begin
fUsuario.show;
fLimite.Visible := false;
end;

procedure TfLimite.Jogador1Click(Sender: TObject);
begin
fJogador.show;
fLimite.Visible := false;
end;

procedure TfLimite.Ficha1Click(Sender: TObject);
begin
fFichas.show;
fLimite.Visible := false;
end;

procedure TfLimite.Capil1Click(Sender: TObject);
begin
fCapile.show;
fLimite.Visible := false;
end;

procedure TfLimite.Fechamento1Click(Sender: TObject);
begin
fFechamento.show;
fLimite.Visible := false;
end;

procedure TfLimite.DevoluodeFicha1Click(Sender: TObject);
begin
fDevolucao.show;
fLimite.Visible := false;
end;

procedure TfLimite.RingGame1Click(Sender: TObject);
begin
fRingGame.show;
fLimite.Visible := false;
end;

procedure TfLimite.Sair1Click(Sender: TObject);
begin
Application.Terminate;
end;

procedure TfLimite.Fechar1Click(Sender: TObject);
begin
Application.Terminate;
end;

end.
